package gateway.zk;

import gateway.WebContext;
import gateway.plugins.divide.LoadBalance;

public interface ServiceRegisterAndDiscover  {
    //根据注册服务名称注册服务真实地址
    void registryAddress(String serviceName, String address);
    //根据服务名称和负载策略发现服务，负载策略由负载均衡插件来实现
    String discover(WebContext webContext, LoadBalance loadBalance);
}
